


import com.example.lib_base.base.http.ApiResponse
import retrofit2.http.*

interface ApiService {

    /**
     * 版本检测
     */
    @GET("http://www.xxx.xxx")
    suspend fun versionInfo(): ApiResponse<String>

    @GET("https://app.syiptv.com/v1/hotLine/list")
    suspend fun newsListBean(@QueryMap options : Map<String,@JvmSuppressWildcards Any>): ApiResponse<NewsListBean>

    /**
     * 版本检测
     */
//    @GET("${API.ADDRESS}${API.CHECK_VERSION}")
    @GET("https://app.chenyueducation.com/app/api/article/detail?id=5")
    suspend fun checkVersion(@QueryMap options : Map<String,@JvmSuppressWildcards Any>): ApiResponse<ArticleDetailBean>

    /**
     * 首页
     */
    @GET("${API.ADDRESS}${API.MAIN}")
    suspend fun main(@QueryMap options : Map<String,@JvmSuppressWildcards Any>): ApiResponse<MainBean>

    /**
     * 动态列表
     */
    @GET("${API.ADDRESS}${API.ARTICLE_LIST}")
    suspend fun articleList(@QueryMap options : Map<String,@JvmSuppressWildcards Any>): ApiResponse<ArticleListBean>

    /**
     * 动态详情
     */
    @GET("${API.ADDRESS}${API.ARTICLE_DETAIL}")
    suspend fun articleDetail(@QueryMap options : Map<String,@JvmSuppressWildcards Any>): ApiResponse<ArticleDetailBean>

    /**
     * 动态详情
     */
    @POST("${API.ADDRESS}${API.PASSPORT_GET_SMSCODE}")
    @FormUrlEncoded
    suspend fun getSmscode(@FieldMap options : Map<String,@JvmSuppressWildcards Any>): ApiResponse<String>





}